<?php
declare (strict_types = 1);

namespace app\admin\model\seed;

use app\admin\model\AdminPermissionModel;
use thinkless\common\BaseSeed;

/**
 * 
 */
class AdminPermissionSeed extends BaseSeed {

    public function getClass() {
        return AdminPermissionModel::class;
    }

    public function seed($theme) {
        return [
            [
                'id' => "1",
                'pid' => "0",
                'addon'=>"admin",
                'type'=> "menu",
                'name' => "系统管理",
                'icon' => "fa fa-laptop",
                'path' =>"",
                'sort' => "0",
                'is_show' => "1"
            ],
            [
                'id' => "2",
                'pid' => "1",
                'addon'=>"admin",
                'type'=> "menu",
                'name' => "管理员列表",
                'icon' => "fa fa-circle-o",
                'path' =>"/admin/admin",
                'sort' => "0",
                'is_show' => "1"
            ],
            [
                'id' => "3",
                'pid' => "1",
                'addon'=>"admin",
                'type'=> "menu",
                'name' => "错误日志",
                'icon' => "fa fa-circle-o",
                'path' =>"/admin/error",
                'sort' => "0",
                'is_show' => "1"
            ],
            [
                'id' => "1000",
                'pid' => "0",
                'addon'=>"home",
                'type'=> "menu",
                'name' => "门户网站",
                'icon' => "fa fa-edit",
                'path' =>"",
                'sort' => "0",
                'is_show' => "1"
            ],
            [
                'id' => "1001",
                'pid' => "1000",
                'addon'=>"home",
                'type'=> "menu",
                'name' => "主页",
                'icon' => "fa fa-edit",
                'path' =>"/home",
                'target' => 'blank',
                'sort' => "0",
                'is_show' => "1"
            ],
        ];
    }
}